package sh.util;

import lombok.Setter;
import sh.orm.query.Pageable;

/**
 * @author lqq
 * @date 2019/2/21
 */
public class PageableImpl implements Pageable {

    public PageableImpl(){

    }
    public PageableImpl(int page,int size){
        this.page = page;
        this.size = size;
    }

    /**
     * 页码，默认0
     */
    @Setter
    private int page = 0;

    /**
     * 分页大小，默认5
     */
    @Setter
    private int size = 5;

    @Override
    public int getPage() {
        return page;
    }

    @Override
    public int getSize() {
        return size;
    }
}
